import time

from selenium.webdriver.chrome import webdriver
from selenium.webdriver.common.by import By

from ThreeTest.Demo1 import driver

driver = webdriver.Chrome(executable_path='"C:\Python313\chromedriver.exe"')

url="http://www.itcast.cn"
driver.get(url)
element=driver.find_element(By.XPATH,"/html/body/div[1]/div[3]/div[1]/div[2]/div/div[2]/ul/li[3]/div/a/img")
element_size=element.size
print(element_size)
print("true")
time.sleep(5)
driver.quit()